﻿#pragma once


#include "NFServerComm/NFServerCommon/NFIDescStoreEx.h"
#include "NFServerComm/NFServerCommon/NFIDescTemplate.h"
#include "NFComm/NFShmStl/NFShmVector.h"
#include "NFLogicCommon/NFDescStoreTypeDefines.h"
#include "proto_common_activity.nanopb.h"

class ActivityEightDescEx : public NF_OBJECT_GLOBAL_TEMPLATE_MACRO(ActivityEightDescEx, EOT_CONST_ACTIVITYEIGHT_DESC_EX_ID, NFIDescStoreEx)
public:
	ActivityEightDescEx();
	virtual ~ActivityEightDescEx();
	int CreateInit();
	int ResumeInit();
public:
	virtual int Load() override;
	virtual int CheckWhenAllDataLoaded() override;
public:
	ActivityEightGroupDesc* GetGroupDesc(int groupId);
	int GetGroupID( int iCRTime, int iServerOpenTime, int iTimeNow, int &iActivityStartTime ) const;
	int GetActivityGroupID( int iCRTime, int iServerOpenTime, int iTimeNow, int &iActivityStartTime ) const;
private:
	NFShmVector<ActivityEightGroupDesc, 10> m_astGroupDesc;
};
